package com.example.makerspace.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@ApiModel(value="消息通知",description="消息通知")
public class MessageDTO extends  BaseDTO{
    @ApiModelProperty(value = "id", required = true)
    private  Integer id;

    @ApiModelProperty(value = "内容", required = true)
    private  String content;

    @ApiModelProperty(value = "标题", required = true)
    private  String title;

    @ApiModelProperty(value = "用户名", required = true)
    private  String username;

    @ApiModelProperty(value = "类型", required = true)
    private Integer type;

    @ApiModelProperty(value = "消息是否已经读", required = true)
    private  Integer isRead;

    @ApiModelProperty(value = "总数")
    private  Integer sum;
}
